package com.gljx.web.dao;

import com.gljx.web.Entity.JournalEntry.StudentStateJournal;
import com.gljx.web.Entity.Sharecartworeg;

import java.util.List;
import java.util.Map;

import com.gljx.web.Entity.Sharecartworegentry;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface SharecartworegMapper {
    int deleteByPrimaryKey(String fid);

    int insert(Sharecartworeg record);

    int insertSelective(Sharecartworeg record);

    Sharecartworeg selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(Sharecartworeg record);

    int updateByPrimaryKey(Sharecartworeg record);

    //查询
    List<StudentStateJournal> selectmxJournal(Map map);

    //查询科目二未培训（科目二练车中）
    List<StudentStateJournal> selectNotTraining(Map map);

    List<Sharecartworeg> selTwoCarAsPeo(String cflcsjid);

    //通过练车时间id 学生id 查询 学生状态
    Long selectStudentstate(@Param("cflcsjid") String cflcsjid, @Param("studentid") String studentid);

    List<Sharecartworegentry> selectSharecartworegAsXls(@Param("fnumber") String fnumber, @Param("fdescription") String fdescription,
                                                        @Param("cfstudentname") String cfstudentname, @Param("beginTime") String beginTime,
                                                        @Param("endTime") String endTime, @Param("fcompanyid") String fcompanyid);

    Sharecartworegentry selectByFnumber(String fnumber);
}